/*
 * @Author: 姚潘涛
 * @Date: 2024-04-08 15:18:03
 * @LastEditors: 姚潘涛
 * @LastEditTime: 2024-10-10 15:45:05
 * @Description:
 *
 * Copyright (c) 2024 by pandaman, All Rights Reserved.
 */
#ifndef XICT_DRIVER_UTILS_DATA_CONVERTER_H
#define XICT_DRIVER_UTILS_DATA_CONVERTER_H

#include "xict_driver/utils/data_definition.h"
#include "xict_proto/sensor/image.pb.h"
#include <memory>

namespace xict_driver {
    namespace utils {
        /**
         * @brief 数据转换器
         *
         */
        class DataConverter {
        public:
            /**
             * @brief Construct a new Data Converter object 构造函数
             *
             */
            DataConverter();

            /**
             * @brief Convert Image msg 转换image消息
             *
             * @param _image_data
             * @return xcmg_proto::OpencvImage
             */
            static xcmg_proto::OpencvImage
            ConvertImageMsg(const cv::Mat& _image_data);
        };
    }   // namespace utils
}   // namespace xict_driver

#endif